<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    body>div{
      width: 198px;
      height: 233px;
      background-color: #e8e8e8;
    }
    p{margin: 0}
    .title_p{
      font-size: 12px;
      margin-bottom: 6px;
      text-align: center;
    }
    .price_p{
      font-size: 12px;
      font-weight: bold;
      margin-bottom: 6px;
      color: #0aa1ed;
      text-align: center;
    }
    div{text-align: center}
    a{
      background-color: #0aa1ed;
      width: 100px;
      height: 24px;
      display: inline-block;
      /*如果需要设置块级元素在所在的行内居中的话,通过外边距*/
      /*margin: 0 auto;*/
      /*如果需要设置行内元素或行内块元素在当前行居中的话,需要给上级元素设置text-align:center*/
      text-align: center;
      color: white;
      font-size: 12px;
      text-decoration: none;
      line-height: 24px;
      border-radius: 3px;
    }

  </style>
</head>
<body>
  <div>
    <img src="https://doc.codeboy.com/tstore_v1/images/itemCat/study_computer_img3.png">
    <p class="title_p">戴尔(DELL)XPS13-9360-R1609 13.3英寸微边框笔记本电脑</p>
    <p class="price_p">￥4600.00</p>
    <a href="">查看详情</a>
  </div>
</body>
</html>